package notes.java.sjms23.t20_mediator;

// 中介模式
public class Client {

    public static void main(String[] args) {
        
        // windows qq
        WindowsQQ qq = new WindowsQQ();
        
        // 设置用户
        PersonZhangs zs = new PersonZhangs("张三", qq);
        PersonLisi ls = new PersonLisi("李四", qq);
        qq.setZhangs(zs);
        qq.setLisi(ls);
        
        zs.talk("你好啊李四！！！");
        ls.talk("你好，张三！！！");
        
    }
}
